//
//  DHTipsView.m
//  精品酒店
//
//  Created by DIANGHONG on 2018/5/12.
//  Copyright © 2018年 DIANGHONG. All rights reserved.
//

#import "DHTipsView.h"
@interface DHTipsView()
@property (weak, nonatomic) IBOutlet UIButton *tipButton;

@end
@implementation DHTipsView
+ (instancetype)tipViewWithFrame:(CGRect)frame
{
    UINib *nib = [UINib nibWithNibName:@"DHTipsView" bundle:nil];
    
    DHTipsView *tipView = [nib instantiateWithOwner:nil options:nil][0];
    tipView.frame = frame;
    tipView.layer.masksToBounds = YES;
    tipView.layer.cornerRadius = frame.size.width * 0.05;
    return tipView;
}
- (void)awakeFromNib{
    [super awakeFromNib];
    self.tipButton.layer.masksToBounds = YES;
    self.tipButton.layer.cornerRadius = 10;
}
- (IBAction)tipButtonClick:(id)sender
{
    NSAssert(self.completUserInfoClick != nil, @"self.completUserInfoClick 不能为nil");
    
    self.completUserInfoClick();
}

@end
